package myWindows;

import java.awt.GridLayout;

import javax.swing.JButton;

public class JTestGridLayout extends JMyVentana{
    public JTestGridLayout() {
    
        //Cambir el BorderLayour y colocar el GRidLayout
        GridLayout gl = new GridLayout(3,2);
        this.getContentPane().setLayout(gl);
        
        for(int i = 1; i <= 6; i++){
            this.getContentPane().add(new JButton("Boton " + i));
        }
    }

    public static void main(String[] args) {
        JTestGridLayout objWindow = new JTestGridLayout();
        
        objWindow.setVisible(true);
    }
}
